package com.huaxin.common.Entity;

import java.util.List;

/**
 * @author lwjing
 * @date 2018/3/23
 * @Desc $desc$
 * Copyright HUAXIN DATA. All rights reserved.
 */
public class WorkFlowDTO extends BaseDTO {
    private WorkFlowBase data;

    public WorkFlowBase getData() {
        return data;
    }

    public class WorkFlowBase {
        private int                page; //页码
        private int                size; //单页最大行数
        private int                totalNum; //总行数
        private List<WorkFlowTask> workflowTaskArr; //待办任务列表

        public int getPage() {
            return page;
        }

        public int getSize() {
            return size;
        }

        public int getTotalNum() {
            return totalNum;
        }

        public List<WorkFlowTask> getWorkflowTaskArr() {
            return workflowTaskArr;
        }
    }

    public class WorkFlowTask {
        private WorkFlowTaskDetail task; //任务单 （条目显示的内容）
        //type = 0（巡检审批）type = 1（巡检计划审批）type = 2（维修保养审批）type = 3（待办任务分发）type = 4（待办任务考核）
        private int                type; //待办任务状态
        private String             des; //描述
        private String             id;//工作流id


        public WorkFlowTaskDetail getTask() {
            return task;
        }

        public int getType() {
            return type;
        }

        public String getDes() {
            return des;
        }

        public String getId() {
            return id;
        }
    }

}
